<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:14340/services/CommunergyUploadService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Communergy.Common" />
  <xs:element name="Insert_ElectricityRealtime">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
        <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="realtimeEnergyReadings" nillable="true" type="q1:ArrayOfRealtimeEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityRealtimeResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="Get_ElectricityRealtime">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="dateFrom" type="xs:dateTime" />
        <xs:element minOccurs="0" name="dateTo" type="xs:dateTime" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Get_ElectricityRealtimeResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="Get_ElectricityRealtimeResult" nillable="true" type="q2:ArrayOfRealtimeEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetLastElectricityRealtime">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetLastElectricityRealtimeResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="GetLastElectricityRealtimeResult" nillable="true" type="q3:RealtimeEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityHourly">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="hourlyEnergyReadings" nillable="true" type="q4:ArrayOfHistoricalEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityHourlyResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityDaily">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
        <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="dailyEnergyReadings" nillable="true" type="q5:ArrayOfHistoricalEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityDailyResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityMonthly">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="monthlyEnergyReadings" nillable="true" type="q6:ArrayOfHistoricalEnergyReading" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Insert_ElectricityMonthlyResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateNewMeter">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="meterToCreate" nillable="true" type="q7:CommunergyMeter" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateNewMeterResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="CreateNewMeterResult" nillable="true" type="q8:CommunergyMeter" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="RetrieveMeterDetails">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="meterId" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="RetrieveMeterDetailsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="RetrieveMeterDetailsResult" nillable="true" type="q9:CommunergyMeter" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SaveMeterDetails">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="meterToSave" nillable="true" type="q10:CommunergyMeter" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SaveMeterDetailsResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMetersForUser">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="userId" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMetersForUserResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/Communergy.Common" minOccurs="0" name="GetMetersForUserResult" nillable="true" type="q11:ArrayOfCommunergyMeter" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>